/**
 * @version Create on 2012-11-13
 * @author Yinzi Chen
 */

public class PalindromeNumber {

	public boolean isPalindrome(int x) {
		int y = 0, t = x;
		while (x > 0) {
			y *= 10;
			y += x % 10;
			x /= 10;
		}
		return y == t;
	}

}
